name = 'abcdefABCDEF'

print("name[0:]=" + name[0:])
print("name[-1:]=" + name[-1:])
print("name[-1,0]=" + name[-1:0])
print("name[-1:0:-1]=" + name[-1:0:-1])
print("name[-1::-1]=" + name[-1::-1])
print("name[::-1]=" + name[::-1])  # 逆序
print("------------------")
print("name[2:6]=" + name[2:6])
print("name[2:-2]=" + name[2:-2])
print("name[2:-1]=" + name[2:-1])
print("name[2:0]=" + name[2:0])
print("name[2:]=" + name[2:])
print("name[2:-1:2=" + name[2:-1:2])
print("name[2:-1:1]=" + name[2:-1:1])
print(("name[2:-1]=" + name[2:-1]))
print("------------------")
print("len(name)=" + str(len(name)))
print("name[len(name)-1]=" + name[len(name) - 1])
print("name[-1]=" + name[-1])
print("name[-2]=" + name[-2])
print("name[-3]=" + name[-3])

a = "ywc"
t = " think of "
b = "my"

print("===%s===" % (a + t + b))
